package com.heima.dynamic_sql.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.heima.dynamic_sql.dto.CheckItemGroupRefDTO;
import com.heima.dynamic_sql.entity.CheckGroup;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Auth: zhuan
 * @Desc: 检查组DAO层接口
 */
@Repository //只是为了Service注入不报错，无任何其它意义
public interface CheckGroupMapper extends BaseMapper<CheckGroup> {

    public List<CheckGroup> findCheckGroupById(@Param("setmeal_id") Integer id);

    void insertBatch(@Param("checkItemGroupRefDTOList") List<CheckItemGroupRefDTO> params);
}
